package com.tz.util;

import org.hibernate.Session;

/**
 * Created by user on 2016/10/10.
 */
public class MyThreadLocal {
    private static ThreadLocal<Session> threadLocal = new ThreadLocal<>();

    public static Session get(){
        return threadLocal.get();
    }

    public static void set(Session session){
        threadLocal.set(session);
    }

}
